adminApp.filter('categoryFilter' , function(){
    return function(items, categoryId1){
        if(typeof(items) == 'undefined')
            return;

        if(typeof(categoryId1) != 'undefined' && categoryId1 > 0)
        {
            return items.filter(function(element){
                return element.parent_id == categoryId1;
            });
        }



    }
});



